QT       += core gui network widgets

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

LIBS += -lssl -lcrypto
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    chat_dialog.cpp \
    chatpage.cpp \
    chatuserlist.cpp \
    chatuserwid.cpp \
    clickedbtn.cpp \
    clickedlabel.cpp \
    configmgr.cpp \
    customizeedit.cpp \
    global.cpp \
    httpmgr.cpp \
    listitembase.cpp \
    login_dialog.cpp \
    main.cpp \
    mainwindow.cpp \
    register_dialog.cpp \
    regsuccess_dialog.cpp \
    resetpass_dialog.cpp \
    rsacrypt.cpp \
    tcpmgr.cpp \
    timerbtn.cpp \
    usermgr.cpp \
    visiablelabel.cpp \
    visiblebutton.cpp

HEADERS += \
    Singleton.h \
    chat_dialog.h \
    chatpage.h \
    chatuserlist.h \
    chatuserwid.h \
    clickedbtn.h \
    clickedlabel.h \
    configmgr.h \
    customizeedit.h \
    global.h \
    httpmgr.h \
    listitembase.h \
    login_dialog.h \
    mainwindow.h \
    register_dialog.h \
    regsuccess_dialog.h \
    resetpass_dialog.h \
    rsacrypt.h \
    tcpmgr.h \
    timerbtn.h \
    usermgr.h \
    visiablelabel.h \
    visiblebutton.h

FORMS += \
    chat_dialog.ui \
    chatpage.ui \
    chatuserwid.ui \
    login_dialog.ui \
    mainwindow.ui \
    register_dialog.ui \
    regsuccess_dialog.ui \
    resetpass_dialog.ui

TRANSLATIONS += \
    wechat_zh_CN.ts
CONFIG += lrelease
CONFIG += embed_translations

DESTDIR = ./bin
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    ResourceFile.qrc

DISTFILES += \
    config.json \
    images/20210926215632_ed4ae.jpeg \
    openssl_key/pkcs8_rsa_private_key.pem \
    openssl_key/rsa_private_key.pem \
    openssl_key/rsa_public_key.pem
